package fede;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Writer;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


import java.util.logging.Filter;
import java.util.logging.Logger;

import fede.audiomod.MP3File;
import fede.audiomod.common.Configuration;
import fede.audiomod.common.AudiomodFunctions;
import fede.audiomod.common.Properties;
import fede.audiomod.finder.Finder;
import fede.audiomod.tags.ID3v1.ID3v1Tag;
import fede.audiomod.tags.ID3v2.ID3v2Header;
import fede.audiomod.tags.ID3v2.ID3v2Tag;
import fede.audiomod.tags.ID3v2.frames.ID3v2FrameHeader;
import fede.audiomod.tags.ID3v2.frames.ID3v2FrameTypes;
import fede.common.utils.MyTimer;
import fede.common.utils.Conversion;
import static java.lang.System.out;


public class Main {

	static final Logger log = Configuration.getAudiomodLogger();
	
	public static void main(String[] args) throws Exception {
		


		File fin = new File("C:\\spikes\\asas.mp3");
		MP3File song = new MP3File(fin);
		
		song.setTitle("Primo");
		song.setArtist("fedeJoker");
		song.setAlbum("death album");
		song.setYearV4("1618");
		
		ID3v1Tag tagv1 = new ID3v1Tag("titolo", "artista", "album", "X666", "che cazzo vuoi", 71, "Rock");
		song.setTagv1(tagv1);
		
		song.setPaddingInTagv2(10);
		
		File fout = new File("C:\\spikes\\res.mp3");
		song.commitChanges(fout, true);
	}
		
	
	
}
